import { Button } from 'antd-mobile'
import React from 'react'
import { useNavigate } from 'react-router-dom'

function Index() {
    const navigate=useNavigate()
    const exit=()=>{
        localStorage.clear()
        navigate('/login')
    }
  return (
    <div><Button onClick={exit}>退出</Button></div>
  )
}

export default Index